<ul id="${id}" name="${id}" style="padding: 0;width: 100%;background:white;">
    @for(item in list){
    <div style="display: none">
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px" value="${item.operationTime}1">${item.operationTime}</p>
        <p style="background-color: palegreen;font-weight: bold;padding-left: 10px" value="${item.id2}">${item.id2}</p>
    </div>
    <li value="${item.customerId}" style="position: relative;padding:10px 20px;">
        <div style="display: flex;align-items: center;">
            <p style="font-weight: bold;font-size: 15px;margin: 0;width: 100px;" value="${item.rechargeTime}">${item.rechargeTimeOne}</p>
            <p style="font-weight: bold;font-size: 15px;margin: 0;width: 100px;text-indent: 0.4em;" value="${item.rechargeTime}">${item.rechargeTimeTwo}</p>
        </div>
        <div>
            <div style="display: flex;padding: 2px;color: #666a73;border-top: 2px solid #ff7e00;border-bottom: 2px solid #ff7e00;text-align: center">
                <span style="flex: 1.5;">牙位</span>
                <span style="flex: 2;">项目</span>
                <span style="flex: 0.5;">状态</span>
                <span style="flex: 1;">总业绩</span>
                <span style="flex: 0.5;">数量</span>
                <span style="flex: 0.5;">欠费</span>
                <span style="flex: 1;">可划扣</span>
                <span style="flex: 1;">抵扣</span>
                <span style="flex: 1;">小计</span>
                <span style="flex: 1;">备注</span>
                <span style="flex: 1;">操作</span>
            </div>
            <div value="${item.operationTime}1"></div>
        </div>
    </li>
    <script>
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/getOpenBillListf",
            type: "post",
            data: {
                "operationTime": $("p[value='${item.operationTime}1']").text(),
                "reservationsId": $("#reservationsId").val(),
            },
            async:false,
            success: function (data) {
                var ss = "";
                var num = 0;
                var id2;
                for (var i = 0; i < data.length; i++) {
                    id2 = data[i].id2;
                    num = parseFloat(data[i].serviceActualPay) + parseFloat(data[i].deductionAmount);
                    ss += '<div><div style="display: flex;padding: 5px 0;border-bottom: 1px solid #e3e3e3;position: relative;text-align: center" id="'+data[i].id2+'" class="payServiceBox">' +
                        '<div style="display: flex;flex-direction: column;flex: 1.5;height: 24px;"><div style="flex: 1;display: flex;border-bottom: 1px solid #999999;width: 60%;margin-left: 20%"><div style="flex: 1;border-right: 1px solid #999999;line-height: 12px;">'+data[i].leftUp+'</div><div style="flex: 1;line-height: 12px;">'+data[i].rightUp+'</div></div><div style="flex: 1;display: flex;width: 60%;margin-left: 20%"><div style="flex: 1;border-right: 1px solid #999999;line-height: 12px;">'+data[i].leftDown+'</div><div style="flex: 1;line-height: 12px;">'+data[i].rightDown+'</div></div></div>' +
                        '<span style="flex: 2;" class="payServiceName">'+data[i].payServiceName+'</span>' ;
                    if(data[i].executeStatus == 0){
                        ss +='<span style="flex: 0.6;"class="executeStatus">执行中</span>' ;
                    }else if(data[i].executeStatus == 1){
                        ss +='<span style="flex: 0.6;"class="executeStatus">执行结束</span>' ;
                    }
                    ss +='<span style="flex: 1;" class="totalPerformance">'+data[i].totalPerformance+'</span>' +
                        '<span style="flex: 0.5;" class="payServiceNum">'+data[i].payServiceNum+'</span>' +
                        '<span style="flex: 0.5;" class="accountArrears">'+data[i].accountArrears+'</span>' +
                        '<span style="flex: 1;"><input type="hidden" class="actualPay" value="'+data[i].serviceActualPay+'"><input type="number" value="'+data[i].serviceActualPay+'" align="center" readonly="readonly" style="border: none;width: 60%;text-align: center" oninput="serviceActualPayNetReceipts(this)" class="netDeduction serviceActualPay"></span>' +
                        '<span style="flex: 1;"><input type="hidden" class="deductionPay" value="'+data[i].deductionAmount+'"><input type="number" value="'+data[i].deductionAmount+'" align="center" readonly="readonly" style="border: none;width: 60%;text-align: center" oninput="deductionAmountNetReceipts(this)" class="netDeduction deductionAmount"></span>' +
                        '<span style="flex: 1;" class="subtotal">'+num+'</span>' +
                        '<span style="flex: 1;"><input type="text" readonly="readonly" class="remarks" align="center" style="border: none;width: 60%;text-align: center;" value="'+data[i].remarks+'"></span>' +
                        '<span style="flex: 1;"><a href="javascript:;" style="color: #3296fa;margin-right: 10px;" class="deduction">划扣</a><a href="javascript:;" style="color: red;margin-right: 10px; display: none" class="hideDeduction">确定</a><a href="javascript:;" style="color: red;display: none" class="cancle">取消</a></span>' +
                        '<div style="position: absolute;left: 10px;font-size: 16px;top: 6px;" class="showDetailed"><span class="glyphicon glyphicon-expand"></span><span class="glyphicon glyphicon-collapse-down" style="display: none"></span></div>'+
                        '</div><div style="display: none;padding: 15px 20px;overflow: hidden;" id="'+data[i].id2+'1" ></div></div>';
                }
                $("div[value='${item.operationTime}1']").html(ss);
            },
            error: function (data) {
                alert('没有权限，请联系系统管理员!');
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            }
        });
    </script>
    @}
</ul>